<div class="head"><span>作者专栏</span></div>
			<div class="cont">
			{qb:tag name="member2" type="member" rows="5"}
				<ul><ol><a href="{$rs.url}"><img src="{$rs.icon}" onerror="this.src='__STATIC__/index/toutiao/nobody.gif'"></a></ol><li><div>{$rs.username}<span class="gz-btn">关注</span></div><p>粉丝：{:fun("Count@Info","friend",["suid"=>$info.uid])}人</p></li></ul>
{/qb:tag}
			</div>
<script type="text/javascript">
$(function(){
	function gz(){
		$.get("{:murl('member/wxapp.friend/add',['uid'=>$info.uid])}",function(res){
			if(res.code==0){
				$(".gz-btn").html('已关注').off("click").click(ungz);
				layer.msg(res.msg);
			}else{
				layer.alert(res.msg);
			}
		});
	}
	function ungz(){
		layer.confirm("你要取消关注吗?",{},function(){
			$.get("{:murl('member/wxapp.friend/del',['uid'=>$info.uid])}",function(res){
				if(res.code==0){
					$(".gz-btn").html('关注').off("click").click(gz);
					layer.msg("你已取消关注");
				}else{
					layer.alert(res.msg);
				}
			});
		});
	}
	$.get("{:murl('member/wxapp.friend/ckgz',['uid'=>$info.uid])}",function(res){
		if(res.code==0){
			$(".gz-btn").html('已关注').click(ungz);
		}else{
			$(".gz-btn").click(gz);
		}
	});
});
</script>